<?php $this->load->view('config/header_home');?>
<h2>Form <?php echo $mode?> penandatangan</h2>
<div class="line-separtor"></div>
<br/>	
	<a href="<?php echo site_url()?>penandatangan" class="btn btn-primary"> Kembali ke daftar </a>
<br/>
<br/>
<form method="post" action="<?php echo site_url() ?>penandatangan/<?php echo $action; ?>" class="form-horizontal">
	<input type="hidden" name="id_penandatangan" value="<?php echo @$detail[0]['id_penandatangan']?>">
	<input type="hidden" name="id_sektor" value="<?php echo $this->session->userdata('sektor')?>">
	<input type="hidden" name="is_disampaikan" value="1">
	
	<div class="control-group">
		<label class="control-label" for="no_penandatangan">NRP penandatangan</label>
		<div class="controls">
		  <input type="text" class="span5" name="no_penandatangan" value="<?php echo @$detail[0]['no_penandatangan']?>" >
		</div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="nama_penandatangan">Nama penandatangan</label>
		<div class="controls">
		  <input type="text" class="span5" name="nama_penandatangan" value="<?php echo @$detail[0]['nama_penandatangan']?>" >
		</div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="jabatan_penandatangan">Jabatan penandatangan</label>
		<div class="controls">
		  <input type="text" class="span5" name="jabatan_penandatangan" value="<?php echo @$detail[0]['jabatan_penandatangan']?>" >
		</div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="jabatan_penandatangan">Posisi penandatangan</label>
		<div class="controls">
			<select name="posisi_penandatangan">
				<?php $selected1 =  '' ?>
				<?php $selected2 =  '' ?>
				
				<?php if (@$detail[0]['posisi_penandatangan'] == 1):?>
					<?php $selected1 =  'selected="selected"' ?>
				<?php elseif (@$detail[0]['posisi_penandatangan'] == 2) :?>
					<?php $selected2 =  'selected="selected"' ?>
				<?php else:?>
					<?php $selected1 =  '' ?>
					<?php $selected2 =  '' ?>
				<?php endif;?>
			
				<option value="1" <?php echo $selected1 ?> >Posisi Kiri</option>
				<option value="2" <?php echo $selected2 ?> >Posisi Kanan</option>
			</select>
		</div>
	</div>
	
	<div class="form-actions">
	  <input type="submit" name="submit" value="Simpan" class="btn btn-primary" />
	  <a href="<?php echo site_url()?>penandatangan" class="btn">Batal</a>
	</div>
</form>
<?php $this->load->view('config/footer_home');?>